package com.nengchuan.kbms.dfs.entity.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * <p>
 * 标签属性选项DTO
 * </p>
 *
 * @author abe
 * @since 2020-04-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "DataTagAttrOptionDTO 对象", description = "标签属性选项 DTO")
public class DataTagAttrOptionDTO {

    @ApiModelProperty(value = "主键")
    private Long id;

    @NotNull(message = "属性id不能为空")
    @ApiModelProperty(value = "属性id", hidden = true)
    @JsonIgnore
    private Long attrId;


    @NotEmpty(message = "选项值不能为空")
    @Size(max = 255, message = "选项值属性不能大于255个字符")
    @ApiModelProperty(value = "选项值")
    private String value;

}
